import java.util.Scanner;

public class Jck5 {

	public static void main(String[] args) {
		int [] arr = new int [10];
		int cj;
		Scanner scanner= new Scanner(System.in);
		
		for (int i = 0; i < arr.length; i++) {
			System.out.println("请输入第"+(i+1)+"个学生的成绩");
			cj=scanner.nextInt();
			arr[i]=cj;
			
		}
		
		for (int i = 0; i < arr.length; i++) {
			System.out.println("第"+(i+1)+"个学生的成绩是"+arr[i]);
		}
		 //找出最大值
		int max = arr[0];
		for (int i = 0; i < arr.length; i++) {
			if (max<arr[i]) {
				max=arr[i];
			}
		}
		//找出最小值
		int min=arr[0];
		for (int i = 0; i < arr.length; i++) {
			if (min>arr[i]) {
				min=arr[i];
			}
		}
		//总和
		
		int sum=0;
		for (int i = 0; i < arr.length; i++) {
			sum=sum+arr[i];
		}
		System.out.println();
		System.err.println("10个学生的总分为"+sum);
		System.out.println("最高分为"+max);
		System.out.println("最低分为"+min);
		
	
	
	
	
	
 }
}
